define([
    'jquery',
    'underscore',
    'backbone',
    'text!templates/business/service-option.html'
], function ($, _, Backbone,template) {
    var ServiceListItemView = Backbone.View.extend({

        tagName:"li",
        template : _.template(template),
        initialize:function () {
            this.model.bind("change", this.render, this);
            this.model.bind("destroy", this.close, this);
        },

        render:function (eventName) {
            $(this.el).html(this.template(this.model.toJSON()));
            return this;
        }

    });
    return ServiceListItemView
});